package micro.web.fallback;

import micro.data.model.User;
import micro.web.client.UserFeignClient;
import org.springframework.stereotype.Component;

/**
 * @author txw
 * @version V1.0
 * @Title: UserFallBack
 * @ProjectName micro-email-server
 * @Description: 描述
 * @since 2018/6/21 1:11
 */
@Component
public class UserFallBack implements UserFeignClient {
    @Override
    public User findById(Long id) {
        return new User("王我");
    }
}
